import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Login from '@/components/Login'
import MsgBoard from '@/components/MsgBoard'
import Register from '@/components/Register'
import CompList from '@/components/CompList'
import JobInfo from '@/components/JobInfo'
import Comments from '@/components/Comments'
import Publish from '@/components/Publish'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    name: '首页',
    component: Home
  }, {
    path: '/login',
    name: '登录',
    component: Login
  }, {
    path: '/msgBoard',
    name: '留言',
    component: MsgBoard
  }, {
    path: '/register',
    name: '注册',
    component: Register
  }, {
    path: '/compList',
    name: '公司列表',
    component: CompList
  }, {
    path: '/JobInfo',
    name: '招聘信息',
    component: JobInfo
  }, {
    path: '/publish',
    name: '发布',
    component: Publish
  }]
})
